﻿<%@ Page Title="" Language="C#" MasterPageFile="MIOS.master" AutoEventWireup="true" CodeFile="Delivery.aspx.cs" Inherits="Delivery" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style143
    {
        width: 304px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
    订单</p>
<p>
    <asp:GridView ID="DeliveryView" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True">
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <Columns>
            <asp:BoundField HeaderText="订单号" DataField="orderID" />
            <asp:BoundField HeaderText="订单日期" DataField="orderTime" />
            <asp:HyperLinkField DataNavigateUrlFields="instruID" 
                DataNavigateUrlFormatString="GoodDetail.aspx?instruID={0}" DataTextField="name" 
                HeaderText="乐器名称" />
            <asp:BoundField HeaderText="单价" DataField="sellPrice" />
            <asp:BoundField HeaderText="乐器数量" DataField="quantity" />
            <asp:BoundField HeaderText="小计" DataField="totalPrice" />
            <asp:BoundField HeaderText="订单状态" DataField="orderState" />
             <asp:TemplateField>
                 <HeaderStyle HorizontalAlign=Center />
                 <ItemStyle HorizontalAlign =Center />
                 <ItemTemplate >
                     <asp:linkButton ID="lnkbtnCheck" runat="server" CommandArgument ='<%#Eval("orderID") %>' OnCommand ="lnkbtnCheck_Command" Text="查看" />
                 </ItemTemplate>    
             </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</p>
<p>
    <table style="width: 94%;">
        <tr>
            <td class="style143">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnOK" runat="server" onclick="btnOK_Click" Text="确定" 
                    Width="58px" />
            </td>
        </tr>
    </table>
</p>
</asp:Content>

